<?php

header("Content-Type: application/json");
if (isset($_GET['result'])) {
    $resp = json_encode(array("STATUS" => "1", "ACTION" => "main.php"));
} else {
    $resp = json_encode(array("STATUS" => "0", "ERROR" => $_GET['ERROR'], "PASS" => $_GET["pass"] . "-" . $_GET["clave"]));
}
echo $resp;
?>